package connect2congress.client;

import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: peter
 * Date: Mar 14, 2010
 * Time: 3:48:14 PM
 * To change this template use File | Settings | File Templates.
 */
public class TickList extends ArrayList<Tick> {

    public int size(int type) {
        int ret = 0;
        for(int i = 0; i < this.size(); i++) {
            if(this.get(i).getType() == type) {
                ret++;
            }
        }
        return ret;
    }
}
